package com.hnyc.goods.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hnyc.goods.mapper.GoodsOnlineMapper;
import com.hnyc.goods.domain.GoodsOnline;
import com.hnyc.goods.service.IGoodsOnlineService;

/**
 * goods-onlineService业务层处理
 * 
 * @author zero
 * @date 2023-03-10
 */
@Service
public class GoodsOnlineServiceImpl implements IGoodsOnlineService 
{
    @Autowired
    private GoodsOnlineMapper goodsOnlineMapper;

    /**
     * 查询goods-online
     * 
     * @param id goods-online主键
     * @return goods-online
     */
    @Override
    public GoodsOnline selectGoodsOnlineById(Long id)
    {
        return goodsOnlineMapper.selectGoodsOnlineById(id);
    }

    /**
     * 查询goods-online列表
     * 
     * @param goodsOnline goods-online
     * @return goods-online
     */
    @Override
    public List<GoodsOnline> selectGoodsOnlineList(GoodsOnline goodsOnline)
    {
        return goodsOnlineMapper.selectGoodsOnlineList(goodsOnline);
    }

    /**
     * 新增goods-online
     * 
     * @param goodsOnline goods-online
     * @return 结果
     */
    @Override
    public int insertGoodsOnline(GoodsOnline goodsOnline)
    {
        return goodsOnlineMapper.insertGoodsOnline(goodsOnline);
    }

    /**
     * 修改goods-online
     * 
     * @param goodsOnline goods-online
     * @return 结果
     */
    @Override
    public int updateGoodsOnline(GoodsOnline goodsOnline)
    {
        return goodsOnlineMapper.updateGoodsOnline(goodsOnline);
    }

    /**
     * 批量删除goods-online
     * 
     * @param ids 需要删除的goods-online主键
     * @return 结果
     */
    @Override
    public int deleteGoodsOnlineByIds(Long[] ids)
    {
        return goodsOnlineMapper.deleteGoodsOnlineByIds(ids);
    }

    /**
     * 删除goods-online信息
     * 
     * @param id goods-online主键
     * @return 结果
     */
    @Override
    public int deleteGoodsOnlineById(Long id)
    {
        return goodsOnlineMapper.deleteGoodsOnlineById(id);
    }
}
